package com.xiaoa.gossip.cluster.event;

import com.xiaoa.gossip.cluster.command.PingNodeState;
import org.springframework.context.ApplicationEvent;

/**
 * note 连接失败监听
 *
 * @author luokaichuang
 * @time 2020/5/9
 */

public class NoteConnectFailEvent extends ApplicationEvent {

    private String method;

    public NoteConnectFailEvent(Object source,String method) {
        super(source);
        this.method = method;
    }

    public String method(){
        return method;
    }

    public PingNodeState nodeState() {
        return (PingNodeState) getSource();
    }

}
